package com.emergency.base.domain;

import com.fasterxml.jackson.annotation.JsonFormat;

import javax.persistence.*;
import java.util.Date;
import java.util.List;

/**
 * 想定文件类
 * */
@Entity
@Table(name="bus_scenar")
public class Scenar extends BaseEntity{

	/**想定名称*/
	private String name;
    /**步长*/
	private String stepLength;
	/**开始时间*/
	@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
	private Date startTime;
	/**持续时间*/
	private long duration;
	/**发生地点*/
	private String place;
	/**辐射范围*/
	private String scope;
	/**类型 1.演练，2.实战*/
	private int type;
	/**想定描述*/
	@Lob
	private String description;

	/**临时属性*/
	@Transient
	private List<ScenarArmy> armys;

	@Transient
	private List<ScenarEquipment> equipments;

	@Transient
	private ScenarRadiation radiation;

	@Transient
	private ScenarWeather weather;

	@Transient
	private List<ScenarTask> tasks;

	public Scenar() {}

	public Scenar(Long id) {
		super(id);
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getStepLength() {
		return stepLength;
	}

	public void setStepLength(String stepLength) {
		this.stepLength = stepLength;
	}

	public Date getStartTime() {
		return startTime;
	}

	public void setStartTime(Date startTime) {
		this.startTime = startTime;
	}

	public long getDuration() {
		return duration;
	}

	public void setDuration(long duration) {
		this.duration = duration;
	}

	public String getPlace() {
		return place;
	}

	public void setPlace(String place) {
		this.place = place;
	}

	public String getScope() {
		return scope;
	}

	public void setScope(String scope) {
		this.scope = scope;
	}

	public int getType() {
		return type;
	}

	public void setType(int type) {
		this.type = type;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public List<ScenarArmy> getArmys() {
		return armys;
	}

	public void setArmys(List<ScenarArmy> armys) {
		this.armys = armys;
	}

	public List<ScenarEquipment> getEquipments() {
		return equipments;
	}

	public void setEquipments(List<ScenarEquipment> equipments) {
		this.equipments = equipments;
	}

	public ScenarRadiation getRadiation() {
		return radiation;
	}

	public void setRadiation(ScenarRadiation radiation) {
		this.radiation = radiation;
	}

	public ScenarWeather getWeather() {
		return weather;
	}

	public void setWeather(ScenarWeather weather) {
		this.weather = weather;
	}

	public List<ScenarTask> getTasks() {
		return tasks;
	}

	public void setTasks(List<ScenarTask> tasks) {
		this.tasks = tasks;
	}

}